package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.NursingLevel;
import com.zzyl.vo.NursingLevelVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface NursingLevelMapper {

    List<NursingLevelVo> getAllNursingLevel();

    void insertNursingLevel(NursingLevel level);

    Page<NursingLevelVo> listByPage(@Param("pageNum") Integer pageNum,
                                    @Param("pageSize") Integer pageSize,
                                    @Param("name") String name,
                                    @Param("status") Integer status);

    void deleteNursingLevel(@Param("id") Long id);

    void updateNursingLevel(NursingLevel level);

    NursingLevelVo getById(@Param("id") Long id);

    void updateStatus(@Param("id") Long id, @Param("status") Integer status);
}
